#include "Rocket.h"

Rocket::Rocket(glm::vec3 position) : GameObject("rocket", position) {
    setMesh(Mesh::load("game/assets/models/cube.obj"));
    setColorMap(Texture::load("game/assets/textures/bricks.jpg"));
    setCollider(new SphereCollider(this, getMesh()->computeRadius()));
}

Rocket::~Rocket() {
    //dtor
}

void Rocket::accept(Visitor* visitor) {
    visitor->visit(this);
}

glm::vec3 Rocket::getVelocity() {
    return velocity;
}

void Rocket::setVelocity(glm::vec3 velocity) {
    this->velocity = velocity;
}
